package com.st.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 商品表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_goods")
public class Goods implements Serializable {
    /**
     * id唯一主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 价格
     */
    @TableField(value = "price")
    private Double price;

    /**
     * 销量
     */
    @TableField(value = "sale")
    private String sale;

    /**
     * 货号
     */
    @TableField(value = "article_number")
    private Integer articleNumber;

    /**
     * 花材
     */
    @TableField(value = "material")
    private String material;

    /**
     * 打包方式
     */
    @TableField(value = "packages")
    private String packages;

    /**
     * 花语
     */
    @TableField(value = "flower_language")
    private String flowerLanguage;

    /**
     * 附赠语言
     */
    @TableField(value = "bundled")
    private String bundled;

    /**
     * 配送详情
     */
    @TableField(value = "delivery")
    private String delivery;

    /**
     * 推荐标记0未推荐1推荐
     */
    @TableField(value = "recoment_flag")
    private Integer recomentFlag;

    /**
     * 内容标识限量发售等
     */
    @TableField(value = "content_flag")
    private Integer contentFlag;

    /**
     * 类目id送恋人等
     */
    @TableField(value = "categorize_id")
    private Integer categorizeId;

    /**
     * 删除标记:0为未删除,1为删除
     */
    @TableField(value = "del_flag")
    private Integer delFlag;

    /**
     * 新建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_PRICE = "price";

    public static final String COL_SALE = "sale";

    public static final String COL_ARTICLE_NUMBER = "article_number";

    public static final String COL_MATERIAL = "material";

    public static final String COL_PACKAGES = "packages";

    public static final String COL_FLOWER_LANGUAGE = "flower_language";

    public static final String COL_BUNDLED = "bundled";

    public static final String COL_DELIVERY = "delivery";

    public static final String COL_RECOMENT_FLAG = "recoment_flag";

    public static final String COL_CONTENT_FLAG = "content_flag";

    public static final String COL_CATEGORIZE_ID = "categorize_id";

    public static final String COL_DEL_FLAG = "del_flag";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}